Skip to main content

mergAVVideoCompositionAddLayerInstruction

Type

command

Summary

Add a layer instruction to the last instruction added to the video composition

Syntax

mergAVVideoCompositionAddLayerInstruction <pVideoCompositionPointer>, <pCompositionPointer>, <pCompositionTrackID>, [<pTransform>], [<pTransformTransition>], [<pOpacity>], [<pOpacityTransition>]

Description

Layer instructions present tracks in highest to lowest order so the first layer added will be the top layer.

Parameters

NameTypeDescription

pVideoCompositionPointer

a pointer to the video composition in memory

pCompositionPointer

a pointer to the composition in memory

pCompositionTrackID

the id of the composition track

pTransform

(optional with "" default) an affine transform in the form "a,b,c,d,tx,ty" to be applied to the composition track at the start of the instruction

pTransformTransition

(optional with "" default) an affine transform in the form "a,b,c,d,tx,ty" to be applied to the composition track as a ramp from pTransform at the end of the instruction. If not set pTransform will remain constant.

pOpacity

(optional with 2 default) a value between 0 and 1 for the opacity at to be applied to the composition track at the start of the instruction.

pOpacityTransition

(optional with 2 default) a value between 0 and 1 for the opacity at to be applied to the composition track as a ramp from pOpacity at the end of the instruction. If not set pOpacity will remain constant.

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

mac

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?